package 剑指offer.从尾到头打印链表_3;

import java.util.ArrayList;
public class Solution {
     ArrayList<Integer> arrayList = new ArrayList<Integer>();
     public ArrayList<Integer> printListFromTailToHead(ListNode listNode) {
        if(listNode != null){
        	printListFromTailToHead(listNode.next);
        	arrayList.add(listNode.val);
        }
        return arrayList;
    }
}